package com.pomelo.kill.mapper;

import com.pomelo.kill.model.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> selectAll();

    /*
     * 查询所有在指定时间参与秒杀的商品信息
     */
    List<Goods> selectAllKill(String date);
}